package cn.com.lyj6851.resource.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SsoResourceController {

	@GetMapping("/api/{id}")
    public String get(@PathVariable("id") String id) {
        System.out.println("id=" + id);
        return "hello resource";
    }
	
	@GetMapping("/open/{id}")
    public String open(@PathVariable("id") String id) {
        System.out.println("id=" + id);
        return "open resource";
    }
}
